// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import { VsCodeExtension } from './extension/VsCodeExtension';
import * as path from 'path';
import * as dotenv from 'dotenv';
import { AnalyticsService } from './services/analyticsService';


// This method is called when your extension is activated
// Your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {

	dotenv.config({ path: path.join(context.extensionPath, '.env') });
	// Use the console to output diagnostic information (console.log) and errors (console.error)
	// This line of code will only be executed once when your extension is activated
	console.log('Congratulations, your extension "harmonypilot" is now active!');

	// 初始化服务
	AnalyticsService.getInstance(context);

	// 初始化vscode扩展	
	const vscodeExtension = new VsCodeExtension(context);
}

// This method is called when your extension is deactivated
export function deactivate() { }
